Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ListBase<T> Class / LastIndexOf Method / LastIndexOf(T,Int32,Int32) Method
The object to locate in the ListBase<T>. The value can be null for reference types.
The zero-based starting index of the backward search.
The number of elements in the section to search.


In This Topic
    LastIndexOf(T,Int32,Int32) Method
    In This Topic
    Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the ListBase<T> that contains the specified number of elements and ends at the specified index.
    Syntax
    'Declaration
     
    
    Public Overloads Function LastIndexOf( _
       ByVal item As T, _
       ByVal index As Integer, _
       ByVal count As Integer _
    ) As Integer
    'Usage
     
    
    Dim instance As ListBase(Of T)
    Dim item As T
    Dim index As Integer
    Dim count As Integer
    Dim value As Integer
     
    value = instance.LastIndexOf(item, index, count)
    public int LastIndexOf( 
       T item,
       int index,
       int count
    )

    Parameters

    item
    The object to locate in the ListBase<T>. The value can be null for reference types.
    index
    The zero-based starting index of the backward search.
    count
    The number of elements in the section to search.

    Return Value

    The zero-based index of the last occurrence of item within the range of elements in the ListBase<T> that contains count number of elements and ends at index, if found; otherwise, –1.
    See Also